<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>  js 语法 version</title>
</head>
<body>

</body>

<script>


    const version = Object.getOwnPropertyNames(window).find(prop => /^Symbol(Symbol.toStringTag)$/.test(prop));
    console.log(version);

    console.log(`ECMAScript Version: ${window.navigator.userAgent}`);
    console.log(`ECMAScript Version: ${window.navigator.userAgent}`);
</script>

</html>

